package com.sykj.controller;

import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sykj.bean.Users;

@RestController
@RequestMapping("/users")
public class UsersController {
	
	@RequestMapping("/login")
	public String login(HttpSession session){
		
		 Users user=null;
		 if (user!=null) {
			 session.setAttribute("user", user);
		 }
		 
		return "";
	}

	
	@RequestMapping("/xxxx")
	public String xxx(HttpSession session){
		
		if (session.getAttribute("user")==null) {
			
		} 
		
		 
		return "";
	}
}
